package com.xiaoy.util;

import com.xiaoy.util.store.Templatekeys;
import com.xiaoy.util.store.VariableStore;

public class Project {
	
	private String name;
	private String version;
	
	private String foot;
	
	private static Project project;
	
	private Project (){
		
		this.name = VariableStore.getValue(Templatekeys.PROJECT_NAME);
		this.version = VariableStore.getValue(Templatekeys.PROJECT_VERSION);
		this.foot = VariableStore.getValue(Templatekeys.PROJECT_FOOT);
	
	}
	
	public static Project getInstance (){
		if (project==null) {
			project = new Project();
		}
		return project;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public static Project getProject() {
		return project;
	}

	public static void setProject(Project project) {
		Project.project = project;
	}

	public String getFoot() {
		return foot;
	}

	public void setFoot(String foot) {
		this.foot = foot;
	}
}	
